<?php
/**
 * Description of module_instance
 *
 * @author javier.camelis
 */
class module_instance
{
  var $body = "" ;
  function __construct( $module_instance = Array() )
  {

    $template = new template($module_instance['html_name'],$module_instance['theme_path'],$module_instance['class']) ;
    
    $object = new $module_instance['class']($module_instance);
    
    $render 	= new render($object,$template->file) ;
    
    $this->body = $render->get() ;
    
  }
  function get()
  {
    return $this->body ;
  }
  function __destruct() {
    return ;
  }
}

?>
